#!/bin/bash
function sum()
{
  c=$[$1+$2]
  return $c
}

function sum1()
{
  a=$[$1+$2]
  b=$[$1-$2]
  c=3
  echo $a
  echo $b
  echo $c
  return 0
}

sum 1 2
a=$?
echo $a

b=$(sum1 2 3)
echo "number: "${#b[*]}
echo "====="
echo $b
echo "====="
echo ${b[0]}
echo "====="
for x in $b
do
  echo $x
  echo "sfdsdf"
done
